package jse.test20160509Strategy;

import org.junit.Test;

public class TestStrategy {
	
	@Test
	public  void test() {
		
		System.out.println("用户选择gif");
		SaveImage image1 = TypeChooser.getSaveString("gif");
		image1.saveImage();
		
		System.out.println("用户选择png");
		SaveImage image2 = TypeChooser.getSaveString("png");
		image2.saveImage();
		
		System.out.println("用户选择jpg");
		SaveImage image3 = TypeChooser.getSaveString("jpg");
		image3.saveImage();
	}
}
